import request from '../utils/request';
// 企业列表 /zsrencai/api/company/company/list/page
export const resumeList = query => {
    return request.get(`/zsrencai/api/sys/admin/resume/personl/page-list/${query.page}/${query.size}`, { params: query })
}

export const deleteResume = query => {
    return request.post(`/zsrencai/api/sys/admin/resume/personl/delete?ids=${query}`, {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
}

export const refreshResume = query => {
    return request.post(`/zsrencai/api/sys/admin/resume/personl/refresh?ids=${query}`, {}, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
}

export const auditPhoto = query => {
    return request.post(`/zsrencai/api/sys/admin/resume/personl/audit-photo`, query)
}

export const auditResume = query => {
    return request.post(`/zsrencai/api/sys/admin/resume/personl/audit`, query)
}

export const resumeDetail = query => {
    return request.get(`/zsrencai/api/sys/admin/resume/personl/detail/${query}`)
}
// 简历投递记录
export const deliverInfo = query => {
    return request.post('/zsrencai/api/sys/admin/resume/deliver/list/page/resume/for/info', query)
}
// 重置密码
export const resetPassword = query => {
    return request.post('/zsrencai/api/sys/admin/resume/updatebatchpassword', query)
}
// 管理
export const getPsToken = id => {
    return request.get('/zsrencai/api/sys/admin/person-user/token/' + id)
}
// 下载简历数量
export const downloadCount = query => {
    return request.put('zsrencai/api/sys/admin/resume/save-batch/resume-download', query)
}
// 失业人员列表 /zsrencai/api/sys/admin/lose-job-resume/list/page
export const loseJobList = query => {
    return request.post('/zsrencai/api/sys/admin/lose-job-resume/list/page', query)
}
// 失业人员详情 /zsrencai/api/sys/admin/lose-job-resume/get/loseJob/{id}
export const loseJobDetail = id => {
    return request.get('/zsrencai/api/sys/admin/lose-job-resume/get/loseJob/' + id)
}

// 获取人员类别
export const getPeopletype = id => {
    return request.get('/zsrencai/api/sys/admin/dict/get/people_type')
}

// 获取省市区
export const prFindall = id => {
    return request.get('/zsrencai/api/sys/admin/pr/find/tree/430200')
}
// 获取专业
export const mcFindall = id => {
    return request.get('/zsrencai/api/sys/admin/mc/find/tree')
}

// 失业人员新增
export const insert = query => {
    return request.post('/zsrencai/api/sys/admin/lose-job-resume/insert', query)
}
// 失业人员修改
export const update = query => {
    return request.post('/zsrencai/api/sys/admin/lose-job-resume/update', query)
}
// 失业人员导入
export const loseJobresumeImport = query => {
    return request.post('/zsrencai/api/sys/admin/lose-job-resume/import', query)
}
// 失业人员详情
export const loseUpload = query => {
    return request.post('/zsrencai/api/sys/admin/file/select/lose/upload', query)
}
// 失业人员详情错误纪录
export const byFileUpload = query => {
    return request.post('/zsrencai/api/sys/admin/resume/lose/job/file/upload/error/select/all/by/file/upload/id', query)
}
// 失业人员导出
export const losejobresumeExport = query => {
    return request.post('/zsrencai/api/sys/admin/lose-job-resume/export', query)
}
// 失业人员导出详情
export const downloadListpage = query => {
    return request.post('/zsrencai/api/sys/admin/lose-job-file-download/list/page', query)
}
// 失业人员删除
export const losejobresumeDelete = id => {
    return request.get('/zsrencai/api/sys/admin/lose-job-resume/delete/' + id)
}

// 附件上传
export const uploadModule = query => {
    return request.post('/zsrencai/api/sys/admin/file/upload/module', query, { headers: { 'Content-Type': 'multipart/form-data' } })
}

// 就业人员登记列表 
export const employmentJobresumeStatistics = query => {
    return request.post('/zsrencai/api/sys/admin/employment-job-resume-statistics/list/page', query)
}

// 就业人员登记添加
export const employmentInsert = query => {
    return request.post('/zsrencai/api/sys/admin/employment-job-resume-statistics/insert', query)
}
// 就业人员登记查询
export const employmentGetid = id => {
    return request.get('/zsrencai/api/sys/admin/employment-job-resume-statistics/get/' + id)
}
// 就业人员登记修改
export const employmentUpdate = query => {
    return request.put('/zsrencai/api/sys/admin/employment-job-resume-statistics/update', query)
}
// 就业人员登记删除
export const employmentDel = id => {
    return request.get('/zsrencai/api/sys/admin/employment-job-resume-statistics/del/' + id)
}

// 就业人员统计获取单位
export const includeLastLevel = id => {
    return request.get('/zsrencai/api/sys/admin/employment-job-resume-statistics/find/tree/not/include/last/level')
}
// 就业人员导出
export const employmentExport = query => {
    return request.post('/zsrencai/api/sys/admin/employment-job-resume-statistics/export', query)
}
// 就业人员导出详情
export const employmentDownload = query => {
    return request.post('/zsrencai/api/sys/admin/employment-job-resume-statistics-download/list/page', query)
}
// 就业人员导入
export const employmentImport = query => {
    return request.post('/zsrencai/api/sys/admin/employment-job-resume-statistics/import', query)
}
// 就业人员详情
export const obtainUpload = query => {
    return request.post('/zsrencai/api/sys/admin/file/select/obtain/upload', query)
}
// 就业人员详情错误纪录
export const employmentTtatistics = query => {
    return request.post('/zsrencai/api/sys/admin/resume/employment/job/resume/statistics/upload/error/select/all/by/file/upload/id', query)
}